package com.keensense.vcm;

import com.keensense.vcm.common.auth.DefaultCredentialProvider;

/**
 * @author lanjian
 * @date 2020/4/28 10:02 上午
 */
public class VCMClientBuilder implements VCMBuilder {

    @Override
    public VCM build(String endPoint, String userName, String password) {
        VCM vcm = (VCM)new DynamicProxy().bind(
            new VCMClient(endPoint, new DefaultCredentialProvider(userName, password), new ClientConfiguration()));
        return vcm;
    }

}
